<?php
error_reporting(0);
header('Expires: Sun, 01 Jan 2014 00:00:00 GMT');
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0', FALSE);
header('Pragma: no-cache');
include "include/init.php";
date_default_timezone_set($settings['timezone']);
include "include/sqlcon.php";
include "include/functions.php";
?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Notebubble</title>
	<link rel="stylesheet" href="css/style.css">
	<link rel="stylesheet" media='screen and (min-width: 801px)' href='css/sidebar.css' />
	<link rel="stylesheet" media='screen and (max-width: 800px)' href='css/sidebar_min.css' />

</head>
<body>
    <div class="sidebar">
		<?php include "./system/sidebar.php"; ?>
    </div>
    <div class="chat">
		<?php
if (isset($_GET['loadpage'])) {
    include "./pages/" . $_GET['loadpage'] . ".php";
} else {
    include "./pages/main.php";
}
?>
    </div>
	<script src="./js/jquery.min.js"></script>
	<script src="./js/scripts.js"></script>
	<iframe id='loader'></iframe>
</body>
</html>
